In this tutorial I will show you how to redirect http to https in Godaddy Plesk/Windows.
If you added SSL secure certificated to your website. You need to redirect the visitors from http version to the secured version (HTTPS) to ensure their information is secured.
Many of them getting struggled to redirect http to https in godaddy windows cpanel. So this tutorial may help.
Redirect http to https cpanel/windows hosting
If you are a windows based user you can handle the redirection using web.config file.
In web.config under the system.webserver tag.
COPY and PASTE the Following code:
<system.webServer>
<rewrite>
<rules>
<rule name="HTTPto HTTPS redirect" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
How to get free trusted ssl certificate for Godaddy domains?
Post your comments / questions
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
Related Article